package com.youchuang.common;

public final class Constant {

	// WEB
	public static final String LOGIN_ERR = "login_err";
	public static final String CHECK_CODE = "checkCode";

	// Session
	public static final String S_USER = "s_user";
	public static final String A_USER = "a_user";
	public static final String S_CART = "s_cart";

	// request
	public static final String NAME = "name";
	public static final String CONTENT = "content";
	public static final String ITEM = "item";
	public static final String PRODUCT = "product";
	public static final String BOOK = "book";
	public static final String CI = "ci";

	// Struts2
	public static final String SUCCESS = "success";
	public static final String ERROR = "error";
	public static final String VERIFY = "verify";
	public static final String LOGIN = "login";
	public static final String EMPTY = "empty";
	public static final String BOOKVIEW = "bookview";
	public static final String LOGIN_FORM = "login_form";
	public static final String REGISTER_FORM = "register_form";
	public static final String MAIN = "main";
	public static final String LIST = "list";
	public static final String CATEGORY = "category";
	public static final String HOT = "hot";
	public static final String NEW = "new";
	public static final String NEWHOT = "newhot";
	public static final String RECOMMEND = "recommend";

	// json
	public static final String ROWS = "rows";
	public static final String VERIFY_ERR = "verify_err";
	public static final String TOTAL = "total";
	public static final String PAGE_SIZE = "pageSize";
	public static final String PAGE_NUMBER = "pageNumber";

	// email
	public static final String MAIL_SERVERHOST = "smtp.163.com";
	public static final String MAIL_SERVERPORT = "25";
	public static final String EMAIL = "youchuang136@163.com";
	// TODO:考虑如何加密密码
	public static final String PASSWORD = "012920cwq";
	public static final String MAIL_ADDRESS = "mailAddress";

	// Page
	public static final int DEFAULT_SIZE = 10;

	// indentStatu
	public static final int WAIT_PAY = 0;
	public static final int WAIT_SHIP = 1;
	public static final int WAIT_RECEIVE = 2;
	public static final int WAIT_AFFIRM = 3;
	public static final int INDENT_AFFIRM = 4;

	// indentPayment
	public static final String WAIT_PAYMENT_METHOD = "未付款";

	// EmailVerify
	public static final int NOT_PASS = 0;
	public static final int PASS = 1;

	// hasDelete
	public static final int NOT_DELETE = 0;
	public static final int HAS_DELETE = 1;

	// comment
	public static final String BAD = "差";
	public static final String GENERAL = "一般s";
	public static final String GOOD = "好";
	public static final String VERY_GOOD = "很好";
	public static final String VERY_WELL = "非常好";

	// category
	public static final String ORIGIN_CATEGORY = "0";

	// SQL
	public static final String UNDEFINED = "-1";

}
